<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>管理系统</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__ADMIN__/style/bootstrap.css" rel="stylesheet">
    <link href="__ADMIN__/style/font-awesome.css" rel="stylesheet">
    <link href="__ADMIN__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__ADMIN__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__ADMIN__/style/demo.css" rel="stylesheet">
    <link href="__ADMIN__/style/typicons.css" rel="stylesheet">
    <link href="__ADMIN__/style/animate.css" rel="stylesheet">
    
</head>
<body>
	<!-- 头部 -->
    {include file="public/top"}

	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
            {include file="public/left"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li><a href="{:url('index/index')}">系统</a></li>
                        <li class="active">信息列表</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加用户" class="btn btn-sm btn-azure btn-addon" onClick="javascript;"> <i class="fa fa-plus"></i> &nbsp; &nbsp; &nbsp; &nbsp;
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr>
                                <th class="text-center">ID</th>
                                <th class="text-center" style="width: 13%">留言人</th>
                                <th class="text-center">留言信息</th>
                                <th class="text-center" style="width: 20%">留言时间(北京时间)</th>
                                <th class="text-center" style="">已读/未读</th>
                                <th class="text-center">操作</th>
                            </tr>
                        </thead>
                        <tbody>

                        {volist name="data" id="res"}

                            <tr>
                                <td align="center" style="width:5%">{$res.id}</td>
                                <td align="center" style="">
                                    <?php
                                    if( strlen($res["addresser"]) > 10){
                                            echo substr($res["addresser"],0,10).".....";
                                            }else{
                                            echo $res["addresser"];
                                        }
                                    ?>
                                </td>
                                <td align="center"><span style="float: left;">

                                    <?php
                                    if( strlen($res["content"]) > 50){
                                            echo substr($res["content"],0,50).".....";
                                            }else{
                                            echo $res["content"];
                                        }
                                    ?>
                                </span></td>
                                <th class="text-center">{$res.tim}</th>
                                <th class="text-center" style="width:10%">

                                    {if condition="$res['status'] eq 0"}
                                    <a class="btn btn-success btn-sm" href="javascript:void(0);">未读</a>
                                    {else /}
                                    <a class="btn btn-darkorange btn-sm" href="javascript:void(0);">已读</a>
                                    {/if}
                                </th>
                                <td align="center" style="width:13%">
                                    <a href="{:url('read',array('id' => $res.id))}" class="btn btn-primary btn-sm shiny">
                                        <i class="fa fa-edit"></i> 查看
                                    </a>
                                    <a href="javascript:" onClick="warning('确实要删除吗', '{:url(\'del\',array(\'id\' => $res.id))}')" class="btn btn-danger btn-sm shiny">
                                        <i class="fa fa-trash-o"></i> 删除
                                    </a>
                                </td>
                            </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div>{$data->render();}</div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__ADMIN__/style/jquery_002.js"></script>
    <script src="__ADMIN__/style/bootstrap.js"></script>
    <script src="__ADMIN__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__ADMIN__/style/beyond.js"></script>
    


</body></html>